package src.main.java.com.pms.entity;

import java.util.Date;

public class Pet {
    private int id;
    private String name;
    private String type;
    private int age;
    private int deleted; // 逻辑删除字段，0表示未删除，1表示已删除
    private Date createdAt; // 创建时间
    private Date updatedAt; // 修改时间

    // 无参构造函数
    public Pet() {
    }

    // 全参构造函数
    public Pet(int id, String name, String type, int age, int deleted, Date createdAt, Date updatedAt) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.age = age;
        this.deleted = deleted;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
    private int hasBathAppointment; // 0表示没有，1表示有未完成的洗澡预约
    // 相应的Getter和Setter方法
    public int getHasBathAppointment() {
        return hasBathAppointment;
    }

    public void setHasBathAppointment(int hasBathAppointment) {
        this.hasBathAppointment = hasBathAppointment;
    }
    private int hasVaccineAppointment; // 0表示没有，1表示有未完成的打疫苗预约
    // 相应的Getter和Setter方法
    public int getHasVaccineAppointment() {
        return hasVaccineAppointment;
    }

    public void setHasVaccineAppointment(int hasVaccineAppointment) {
        this.hasVaccineAppointment = hasVaccineAppointment;
    }
    private int hasCremationAppointment; // 0表示没有，1表示有未完成的火化预约
    // 相应的Getter和Setter方法
    public int getHasCremationAppointment() {
        return hasCremationAppointment;
    }

    public void setHasCremationAppointment(int hasCremationAppointment) {
        this.hasCremationAppointment = hasCremationAppointment;
    }
    private int isForSale; // 0表示未寄卖，1表示正在寄卖
    private double askingPrice; // 寄卖期望价格
    private String sellerContact; // 卖家联系方式

    // 相应的Getter和Setter方法
    public int getIsForSale() {
        return isForSale;
    }

    public void setIsForSale(int isForSale) {
        this.isForSale = isForSale;
    }

    public double getAskingPrice() {
        return askingPrice;
    }

    public void setAskingPrice(double askingPrice) {
        this.askingPrice = askingPrice;
    }

    public String getSellerContact() {
        return sellerContact;
    }

    public void setSellerContact(String sellerContact) {
        this.sellerContact = sellerContact;
    }
    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", age=" + age +
                ", deleted=" + (deleted == 0 ? "未删除" : "已删除") +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}
